/* #region===== 全站基本 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'MyFont';
  font-weight: 400;
  letter-spacing: 0.1em;
}

@font-face {
  font-family: 'MyFont';
  src: url('fonts/KozGoPr6NRegular.otf');
}

html {
  scroll-behavior: smooth;
}

/* #endregion */
/* #region===== Layout ===== */
.layout {
  min-height: 400vh;
  display: flex;
  flex-direction: column;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ===== Header ===== */
.header {
  padding: 36px 20px;
  text-align: center;
}

/* ===== Main ===== */
.main {
  flex: 1;
  padding: 24px 180px;
}

/* ===== Menu Icon ===== */
.menu-icon {
  position: fixed;
  top: 30px;
  left: 24px;
  width: 50px;
  height: 50px;
  z-index: 9999;
}

.menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== Side Menu ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: #343C55;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.2s;

  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.side-menu.active {
  left: 0;
  z-index: 8000;
  opacity: 1;
  pointer-events: auto;
}

.side-menu ul {
  list-style: none;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 16px 80px;
}

.side-menu a:hover {
  color: #E83928;
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.502);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: -2;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 7999;
}

/* #endregion*/
/* #region===== 上下滑動結構 ===== */
.upDownGroup {
  position: relative;
  height: 400vh;
  z-index: 1;
  isolation: isolate;
}

.upDownBg {
  position: sticky;
  top: 0;
  height: 100vh;

  z-index: 2;
}

.upDownContent {
  position: relative;
  z-index: 3;
  margin-top: -100vh;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.upDownContent.hide {
  transform: translateY(200%);
}

.upDownPanel {
  height: 100vh;
}

.final-fixed {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
  background: black;
}

.bg {
  position: absolute;
  inset: 0;
}

.bg.A {
  z-index: 2;
  background: red;
  /* A畫面 */
}

.bg.B {
  z-index: 1;
  background: blue;
  /* B畫面 */
}

.bg.A.hide {
  pointer-events: none;
  opacity: 0;
}

/* #endregion*/
#exhibit,
#event,
#works {
  position: relative;
  overflow: hidden;
}

#shop,
#works {
  pointer-events: auto;
}

/* #region===== Visit ===== */
#visit {
  position: relative;
  overflow: hidden;
}

/* 背景影片 */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #FFF;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

/* 影片切換 */
.video-desktop {
  display: block;
}

.video-mobile {
  display: none;
}

#visit .header,
#visit .main,
#visit .footer {
  position: relative;
  z-index: 1;
}

/* Layout */
.visit-layout {
  display: flex;
  gap: 40px;
  height: 100%;
  padding: 0 0 20px 0;
}

.visit-layout h1 {
  font-size: 40px;
  color: #343C55;
  font-weight: 700;

}

/* 左半 */
.visit-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 標題 */
.visit-title {
  display: flex;
  flex-direction: column;
}

/* 按鈕 */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 右半 */
.visit-right {
  flex: 1;
  display: flex;
}

/* PDF */
.pdf-box {
  width: 100%;
  height: 100%;

}

.pdf-box iframe {
  width: 100%;
  border-radius: 20px;
  height: 100%;
}

/* #endregion*/
/* #region按鈕樣式 */
.arrow-btn {
  width: 200px;
  height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #E83928;
  color: white;
  font-size: 14px;

  gap: 10px;
  border: none;
  border-radius: 46px;

  cursor: pointer;
  transition: 0.3s;
}

.arrow-btn:hover {
  background: #c92f20;
}

.arrow {
  transition: transform 0.3s;
}

.arrow-btn:hover .arrow {
  transform: translateX(6px);
}

/* #endregion */
/* #region===== Shop ===== */
#shop {
  position: relative;
  overflow: hidden;
}

.shop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 0;
  background-color: #000000;
}

.shop-bg img {
  width: 100%;
  height: 100%;

}

.shop-bg::after {
  content: "";
  position: absolute;
  inset: 0;


  mix-blend-mode: saturation;
  z-index: 1;
}

.shop-words {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* 每個字 */
.shop-words .w {
  position: absolute;
  font-size: 14px;
  letter-spacing: 0.2em;
  opacity: 0.25;


  color: #121212;


}

.w1 {
  top: 10%;
  left: 8%;
}

.w2 {
  top: 20%;
  left: 70%;
}

.w3 {
  top: 35%;
  left: 15%;
}

.w4 {
  top: 50%;
  left: 60%;
}

.w5 {
  top: 65%;
  left: 20%;
}

.w6 {
  top: 75%;
  left: 75%;
}

.w7 {
  top: 15%;
  left: 40%;
}

.w8 {
  top: 40%;
  left: 80%;
}

.w9 {
  top: 70%;
  left: 45%;
}

.w10 {
  top: 85%;
  left: 10%;
}

.w11 {
  top: 5%;
  left: 55%;
}

.w12 {
  top: 60%;
  left: 5%;
}

.shop-corner-text {
  position: absolute;
  z-index: 4;

  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.02em;

  color: #00000087;

  opacity: 0.85;

  max-width: 300px;

  pointer-events: none;
}

.top-right {
  top: -10px;
  right: 40px;
  text-align: right;
}

.bottom-left {
  bottom: -10px;
  left: 40px;
  text-align: left;
}


.shop-visual {
  position: absolute;
  inset: 0;
  z-index: 8;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

.shop-visual img {
  width: 30vw;
  min-width: 240px;
  max-width: 420px;

  transform: scale(1.2);

}

.shop-title-bg {
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
  z-index: 5;

  font-size: 16vw;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #E83928;

  white-space: nowrap;
  pointer-events: none;
}

.shop-title-bg br {
  display: none;
}

.shop-corner-images {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.shop-corner-images img {
  width: 50vw;
  max-width: 1600px;
  min-width: 600px;
}

.img-center {
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
}

.shop-cta {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;

  z-index: 10;
}

#shop .header,
#shop .main {
  position: relative;
  z-index: 10;
}

/* #endregion*/
/* #region===== 主頁商品主視覺偽3D ===== */
#shop {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.shop-visual {
  transform-style: preserve-3d;
}

.shop-visual img {
  transition: transform 0.12s ease-out;
  transform-origin: center center;
  will-change: transform;
  pointer-events: auto;
}

/* #endregion*/
/* #region===== Footer ===== */
.footer {
  background: #1a1a1a;
  padding: 24px 36px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer img {
  height: 48px;
  width: auto;
  object-fit: contain;
  padding: 5px;
  border-radius: 6px;
}

/* #endregion*/
/* #region===== 1024RWD ===== */
@media (max-width: 1024px) {
  .main {
    padding: 24px 120px;
  }
}

/* #endregion*/
/* #region===== 768RWD ===== */
@media (max-width: 768px) {
  .header {
    padding: 44px 20px;
  }

  .main {
    padding: 0px 60px 20px 60px;
  }

  /* 影片切換 */
  .video-desktop {
    display: none;
  }

  .video-mobile {
    display: block;
  }

  .visit-layout {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .visit-layout h1 {
    font-size: 28px;
  }

  .visit-left {
    display: contents;
  }

  .visit-title {
    order: 1;
  }

  .visit-right {
    order: 2;
  }

  .button-group {
    order: 3;
  }

  .visit-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pdf-box {
    width: 100%;
    max-width: 400px;
    height: 50vh;
    padding: 10px 20px;
  }

  .button-group {
    align-items: center;
    gap: 10px;
  }

  .side-menu {
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    padding-top: 100px;
  }

  .side-menu.active {
    top: 0;
  }

  /* footer */
  .footer {
    padding: 15px 20px;
  }

  .footer img {
    height: 36px;
    padding: 2px;
  }

  .shop-bg img {
    width: auto;
    height: 100%;
  }

  .shop-title-bg br {
    display: block;
  }

  .shop-title-bg {
    white-space: normal;
    text-align: center;
    font-size: clamp(40px, 30vw, 140px);
    line-height: 0.9;
    padding: 0 0 120px 0;
  }

  .top-right {
    top: -10px;
    right: -20px;
    text-align: right;
  }

  .bottom-left {
    bottom: -10px;
    left: -20px;
    text-align: left;
  }

  .shop-corner-images img {
    width: 80vw;
    max-width: 1600px;
    min-width: 600px;
  }

  .img-center {
    position: absolute;
    top: 65%;
    left: 50%;

    transform: translate(-50%, -50%);
  }

}

/* #endregion*/
/* #region===== 商品頁整體 ===== */

#shop-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

}

.shop-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("image/scrolling1/bg_gray2.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.shop-page-bg img {
  width: 100%;
  height: auto;
  object-fit: cover;

}

.shop-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;


  mix-blend-mode: saturation;
  z-index: 1;
}


#shop-page .main {
  position: relative;
  z-index: 3;
  padding-left: 140px;
  padding-right: 100px;
}

#shop-page .footer {
  background: transparent;
}

.section-banner {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;
  border-radius: 12px;

  color: #EFEFEF;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}

.section-banner.single {
  background-image: url("image/shop/model1.jpg");
}

.section-banner.combo {
  background-image: url("image/shop/model3.jpg");
}

.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.174);
}

.section-banner {
  position: relative;
  z-index: 1;
}

#shop-page::before {
  content: "";
  position: absolute;

  top: 5%;
  right: -25%;

  width: 800px;
  height: 600px;

  background-image: url("image/scrolling2/00_redlight.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1230px) {
  #shop-page::before {

    top: 5%;
    right: -35%;

  }
}

@media (max-width: 1024px) {
  #shop-page::before {
    top: auto;
    bottom: 240px;
    right: -400px;


  }
}

@media (max-width: 768px) {
  #shop-page::before {
    bottom: 360px;
    right: -360px;


  }
}

.shop-left .form-group+.form-group {
  margin-top: 44px;
}

@media (max-width: 1024px) {
  #shop-page .main {
    padding: 0 60px 60px 60px;
  }

}

/* #endregion */
/* #region===== 左右排版 ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.shop-left,
.shop-right {
  min-width: 0;
}

/* #endregion */
/* #region===== 卡片面板 ===== */
.panel {
  background: rgba(160, 158, 154, 0.16);
  border: 1px solid #EFEFEF;
  border-radius: 15px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-left .panel {
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
}

.cart-panel {
  position: sticky;
  top: 100px;
}

.bird-images {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.bird-images img {
  width: 10vw;
  max-width: 800px;
  min-width: 200px;
}

.bird-img-center {
  position: absolute;
  top: 4%;
  left: 56%;

  transform: translate(-50%, -50%);
}

.sale-banner {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  overflow: hidden;

  font-size: 14px;
  white-space: nowrap;
  color: #EFEFEF;

  margin-bottom: 2px;
}

.sale-left,
.sale-right {
  overflow: hidden;
  letter-spacing: 0.2em;
}

.sale-center {
  flex-shrink: 0;
  padding: 0 12px;
  letter-spacing: 0.1em;
}

/* #endregion */
/* #region===== 表單區塊 ===== */
.cart-title {
  color: #EFEFEF;
  font-size: 20px;
  font-weight: 700;
  text-align: center;

}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #EFEFEF;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 15px;
  border: none;
  outline: none;
  font-size: 15px;
  min-height: 44px;
  line-height: 1.2;
  background: #EFEFEF;
  color: #121212;
}

::placeholder {
  color: #999;
}

.form-hint {
  display: block;
  margin-top: 8px;
  color: #d9d9d9;
  font-size: 12px;
  line-height: 1.5;
}

.store-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.store-row input {
  flex: 1;
}

.shop-right label {
  margin-bottom: 3px;
}

/* #endregion */
/* #region===== 商品 / 組合列表 ===== */
#product-list,
#combo-list {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.product,
.combo-product {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.product,
.combo-product {
  color: #EFEFEF;
  line-height: 1.4;
  width: 100%;
  max-width: 330px;
  height: 220px;
  display: flex;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0;
}

#product-list,
#combo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#product-list>*,
#combo-list>* {
  justify-self: center;
}

.product button,
.combo-product button {
  margin: 0 5px;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.product button:disabled,
.combo-product button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.loading-products {}

.stock-info.is-loading {
  display: inline-block;
  background: #E83928;
  color: #EFEFEF;
  padding: 2px 8px;
  border-radius: 15px;
  font-size: 10px;
  margin-bottom: 3px;
}

/* 左圖 */
.product-img {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.product-img img {
  width: 120%;
  height: 120%;
  transform: translate(-10%, -5%);

  object-fit: cover;
}

.card-special {
  position: relative;
  overflow: visible;
  z-index: 0;
}

.card-special .card-bg-deco {
  position: absolute;
  inset: 0;
  width: 360%;
  height: 360%;
  object-fit: contain;
  transform: translate(-50%, -30%);
  z-index: 0;
  pointer-events: none;
}

.card-special .card-main-img {
  position: relative;
  z-index: 2;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: translate(-10%, -5%);
}

.three-columns .card-special .card-bg-deco {
  transform: translate(1000%, -1000%);
}

.product-info {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 0px 0 0;

  position: relative;
  z-index: 5;
}



.product-desc {
  flex-grow: 1;
}


.product-meta {
  margin-top: auto;
}

.product-qty {
  margin-top: 6px;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;

}


.product-desc {
  font-size: 13px;
  opacity: 0.7;
  margin: 0 0 10px 0;
  letter-spacing: 0.1em;
}

.product-meta {
  display: flex;
  align-items: end;
  gap: 0px;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
}

.stock-info {
  font-size: 10px;
  padding-bottom: 3px;
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-5%);
}

.product-qty button {
  width: 30px;
  height: 34px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #E83928;
  color: #fff;
  font-size: 18px;
  transition: 0.2s;
}


.product-qty button:hover {
  background: #c92f20;
}

.product-qty.is-loading {
  opacity: 0.45;
}

.product-qty.is-loading button {
  pointer-events: none;
}



/* #endregion */
/* #region===== 購物車 ===== */
.cart-display {
  min-height: 80px;
  color: #EFEFEF;
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.price-display {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #E83928;
}


/* #endregion */
/* #region===== 浮動購物車按鈕 ===== */
.floating-cart-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;

  width: 64px;
  height: 48px;
  border: none;
  border-radius: 46px;

  background: #E83928;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.floating-cart-btn:hover {
  background: #c92f20;
  transform: translateY(-2px);
}

.floating-cart-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}


@media (max-width: 1024px) {
  .floating-cart-btn {
    display: inline-flex;
  }
}

.floating-cart-btn.is-docked {
  position: absolute;
  right: 20px;
  bottom: auto;
}

/* #endregion */
/* #region===== 按鈕 ===== */
.store-search-btn {
  padding: 10px 12px;
  background: #E83928;
  color: #EFEFEF;
  text-decoration: none;
  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  /* ⭐ 加這個 */
  max-height: 44px;
}

.store-search-btn:hover {
  background: #c92f20;
}

#submit-button {
  width: 100%;
  padding: 14px;
  border: none;
  background: #E83928;
  color: #EFEFEF;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 12px;
}

#submit-button:hover {
  background: #c92f20;
}

#loading-indicator {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.back-to-top-divider {
  display: none;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 24px 0;
  cursor: pointer;
}

.back-to-top-divider::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.back-to-top-arrow,
.back-to-top-text {
  display: block;
  text-align: center;
  color: #EFEFEF;
}

.back-to-top-arrow {
  font-size: 18px;
  line-height: 0.5;
  transform: scale(1.2, 0.6);
}

.back-to-top-text {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.back-to-top-divider:hover .back-to-top-arrow,
.back-to-top-divider:hover .back-to-top-text {
  color: #E83928;
}

/* #endregion */
/* #region===== 手機版 ===== */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .back-to-top-divider {
    display: block;
  }
}

@media (max-width: 768px) {
  .container.shop-page {
    width: 100%;
    padding: 88px 16px 24px;
  }

  h4 {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .store-row {
    flex-direction: column;
  }

  .side-menu {
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    padding-top: 100px;
  }

  .side-menu.active {
    top: 0;
  }

}

/* #endregion */